home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-ARM / ARCH-VNC / MMU.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-17  |  632 b   |  27 lines

  1. /*
  2.  * linux/include/asm-arm/arch-ebsa110/mmu.h
  3.  *
  4.  * Copyright (c) 1996,1997,1998 Russell King.
  5.  *
  6.  * Changelog:
  7.  *  20-10-1996    RMK    Created
  8.  *  31-12-1997    RMK    Fixed definitions to reduce warnings
  9.  */
  10. #ifndef __ASM_ARCH_MMU_H
  11. #define __ASM_ARCH_MMU_H
  12.  
  13. /*
  14.  * On ebsa, the dram is contiguous
  15.  */
  16. #define __virt_to_phys__is_a_macro
  17. #define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET)
  18. #define __phys_to_virt__is_a_macro
  19. #define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET)
  20.  
  21. #define __virt_to_bus__is_a_macro
  22. #define __virt_to_bus(x)    (x - 0xe0000000)
  23. #define __bus_to_virt__is_a_macro
  24. #define __bus_to_virt(x)    (x + 0xe0000000)
  25.  
  26. #endif
  27.